<template>
	<view class="x-doctor-item">
		<view class="avatar-box">
			<u-avatar :src="item.avatar" size="90rpx"></u-avatar>
		</view>
		<view class="right-content">
			<view class="top">
				<text class="name">{{item.nickName}}</text><text class="position">{{item.level}}</text><text class="x-mini-tag mr-10">{{item.hospitalLevel}}</text><text class="x-mini-tag yellow">从业{{item.workYears}}年</text>
			</view>
			<view class="info">{{item.departmentName}}｜{{item.hospitalName}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: [Object, String],
				default: {}
			}
		},
		data() {
			return {
				src: require('@/static/images/doctor.png'),
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.x-doctor-item {
		padding: 30rpx;
		background: #F8FAFF;
		border-radius: 12rpx;
		display: flex;

		.avatar-box {
			width: 90rpx;
			height: 90rpx;
		}

		.right-content {
			flex: 1;
			min-width: 0;
			padding-left: 25rpx;

			.top {
				margin-bottom: 20rpx;

				.name {
					font-weight: 600;
					margin-right: 15rpx;
				}

				.position {
					font-size: 24rpx;
					color: $uni-color-666;
					margin-right: 15rpx;
				}
				
				.mr-10{
					margin-right: 10rpx;
				}
			}

			.info {
				font-size: 22rpx;
				color: $uni-color-999;
			}

		}
	}
</style>
